import urllib3

http = urllib3.PoolManager()

url = 'http://localhost:9200'

res = http.request('get', url)

print(res.data.decode())
